package com.greensam.common.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 基础实体类
 * @Author: Machengrui
 * @Date: 2024/11/18 22:55
 */
@Data
@Schema(title = "基础实体类")
public class BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    protected Long id;

    /**
     * 数据操作
     */
    @TableField(exist = false)
    String dataMarker;

}
